/*
* @Author: wanghongfucoder
* @Date:   2017-04-01 10:09:01
* @Last Modified by:   wanghongfucoder
* @Last Modified time: 2017-04-01 10:12:07
*/

public  class Demo {
	
	public static void main(String[] args) {
		BusinessDelegate businessDelegate=new BusinessDelegate();
		businessDelegate.setServiceType("EJB");
		Client client=new Client(businessDelegate);
		client.doTask();
		businessDelegate.setServiceType("JMS");
		client.doTask();
	}
}